home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / unix / ch20 / 20fig17a.wrl < prev    next >
Text File  |  1996-09-23  |  931b  |  49 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Lighting
  8.         DirectionalLight {
  9.             direction 0.0 -1.0 0.0
  10.             ambientIntensity 0.5
  11.         },
  12.     # Floor
  13.         Shape {
  14.             appearance Appearance {
  15.                 material Material { }
  16.             }
  17.             geometry Box { size 8.0 0.01 8.0 }
  18.         },
  19.     # Spheres
  20.         Transform {
  21.             translation 0.0 4.0 2.0
  22.             children Shape {
  23.                 appearance Appearance {
  24.                     material Material { diffuseColor 1.0 1.0 0.0 }
  25.                 }
  26.                 geometry Sphere { }
  27.             }
  28.         },
  29.         Transform {
  30.             translation 2.0 2.0 -2.0
  31.             children Shape {
  32.                 appearance Appearance {
  33.                     material Material { diffuseColor 0.0 1.0 0.0 }
  34.                 }
  35.                 geometry Sphere { radius 2.0 }
  36.             }
  37.         },
  38.         Transform {
  39.             translation -2.0 2.5 0.0
  40.             children Shape {
  41.                 appearance Appearance {
  42.                     material Material { diffuseColor 0.0 1.0 1.0 }
  43.                 }
  44.                 geometry Sphere { radius 0.75 }
  45.             }
  46.         }
  47.     ]
  48. }
  49.